package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser getlogin(@Param("usrName") String usrName, @Param("usrPassword") String usrPassword);

    /**
     * 分页查找系统用户
     * @param usrName
     * @param roleId
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<SysUser> lists(@Param("usrName") String usrName, @Param("roleId") Long roleId,
                        @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);


}
